<?php
 $sql = "SELECT *FROM tbluser WHERE activated_status=0 AND user_type_id=2";
 $NotificationNum = @mysql_query($sql);
 $NotificationNumUsers =  @mysql_num_rows($NotificationNum);

?>
<div id="header">
    <div class="div1">
        <div class="div2"><img  style="cursor:pointer; "src="<?php echo base_url; ?>admin/templates/image/logo.png" title="Administrator"  onclick="location = '<?php echo base_url; ?>/admin/'" /></div>

        <div class="div3">
        <?php
         if ($_SESSION ['usertype'] == 1) { // can access only super administrator user
        	if($NotificationNumUsers > 0){
        	?>
        	<a href="<?php echo base_url_admin;?>/user/index.php?txtSelectFilter=0&action=filter"><div style="position:relative; float:left;margin-right:-9px;z-index:2; background-color:red;"><?php echo @$NotificationNumUsers;?></div></a>
        	<?php
        	}
        ?>

        <img src="<?php echo base_url; ?>admin/templates/image/notication.png" title="Notification" style="position: relative; top: 3px;" /> |
        <?php } // end user access right ?>
        <img src="<?php echo base_url; ?>admin/templates/image/lock.png" alt="Loginadmin" style="position: relative; top: 3px;" />
        &nbsp;You logged in as<a href="<?php echo base_url_admin;?>/user/index.php?view=userprofile"> <?php echo isset($_SESSION['username']) ? $_SESSION['username']:"";?></a>

         </div>
    </div>
    <div id="menu">
        <ul class="left">
            <li id="dashboard"><a href="<?php echo base_url; ?>admin/" class="top">Dashboard</a></li>
            <li id="catalog"><a class="top">Catalog</a>
                <ul>
                    <li><a href="<?php echo base_url; ?>admin/category/">Categories</a></li>
                    <li><a href="<?php echo base_url; ?>admin/product/">Products</a></li>
                </ul>
            </li>
             <?php if ($_SESSION ['usertype'] == 1) { // can access only super administrator user?>
            <li id="extension"><a class="top">System</a>
                <ul>
                    <li><a href="<?php echo base_url; ?>admin/user/">User</a></li>
                    <li><a href="<?php echo base_url; ?>admin/account_type/">Account Type</a></li>
                </ul>
             </li>
             <?php } ?>
            <li id="reports"><a href="<?php echo base_url; ?>admin/advertise/" class="top">Advertise</a></li>
            <li id="reports"><a href="<?php echo base_url; ?>admin/banner/" class="top">Banner</a></li>
            <li id="reports"><a href="<?php echo base_url; ?>admin/vdoyoutube/" class="top">Youtube</a></li>
            <li id="reports"><a href="<?php echo base_url; ?>admin/pages/" class="top">Page</a></li>
            <li><a class="top" href="<?php echo base_url; ?>admin/setting/index.php?view=add">Setting</a></li>
			<li><a class="top" target="_blank" href="<?php echo base_url; ?>admin/help/index.php">Help</a></li>
        </ul>
        <ul class="right" style="display: none;">
            <li id="store"><a href="<?php echo base_url; ?>" target="_blank" class="top">View Store</a></li>
            <li><a class="top" href="<?php echo base_url; ?>admin/?logout">Logout</a></li>
        </ul>
    </div>
</div>